package com.wac.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Map;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author beta
 * @since 2023-03-16
 */
@Getter
@Setter
@TableName("user")
public class User implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private String id;

	@TableField("email")
	private String email;

	@TableField("`name`")
	private String name;

	@TableField("head_url")
	private String headUrl;

	@TableField("`password`")
	private String password;

	@TableField("`text`")
	private String text;

	@TableField("`time`")
	private LocalDateTime time;

	@TableField("`level`")
	private Integer level;

	@TableField("exp")
	private Integer exp;

	@TableField("days")
	private Integer days;

	@TableField("background_url")
	private String backgroundUrl;

	//用户统计信息
	@TableField(exist = false)
	private UserStatistical statistical;

}
